import request from '@/utils/request'

// 查询流程工单记录列表
export function listFlowMainInfo(query) {
  return request({
    url: '/biz/flowMainInfo/list',
    method: 'get',
    params: query
  })
}

// 查询流程工单记录详细
export function getFlowMainInfo(id) {
  return request({
    url: '/biz/flowMainInfo/' + id,
    method: 'get'
  })
}

// 新增流程工单记录
export function addFlowMainInfo(data) {
  return request({
    url: '/biz/flowMainInfo',
    method: 'post',
    data: data
  })
}

// 修改流程工单记录
export function updateFlowMainInfo(data) {
  return request({
    url: '/biz/flowMainInfo',
    method: 'put',
    data: data
  })
}

// 删除流程工单记录
export function delFlowMainInfo(id) {
  return request({
    url: '/biz/flowMainInfo/' + id,
    method: 'delete'
  })
}
